<template>
  <div class="table-page-search-wrapper">
    <list-area ref="listArea" v-show="listShow" @rowClick="handleRowClick"></list-area>
    <edit ref="edit" v-show="formShow" @getBack="handleGetBack"></edit>
  </div>
</template>

<script>
import ListArea from '@/views/editPreview/ListArea'
import Edit from '@/views/editPreview/Edit'
export default {
  name: 'CompleteView',
  components: { Edit, ListArea },
  data () {
    return {
      listShow: true,
      formShow: false,
      advanced: false,
      // 查询参数
      queryParam: {}
    }
  },
  methods: {
    handleRowClick (record) {
      this.listShow = false
      this.formShow = true
      this.$refs.edit.setFormValue(record)
    },
    handleGetBack () {
      this.listShow = true
      this.formShow = false
    }
  }
}
</script>

<style scoped>

</style>
